package com.zrt.bookstore3.Service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zrt.bookstore3.Domain.Book;
import com.zrt.bookstore3.Domain.Order;
import com.zrt.bookstore3.Domain.User;

import java.util.List;

public interface BookService extends IService<Book> {
    IPage<Book> getPage(int currentPage, int pageSize, Book book);
    Book selectById(int id);
    List<Book> selectAllBooksByCondition(Book book);
    List<Book> searchAllByTypeBooks(int cid);
    boolean modify(Book book);
    boolean delete(Integer id);
    List<Book> listBooksByType(String type);
    List<Book> selectAll();
}
